<h3 class="widget-name"><i class="icon-comment"></i> Comments</h3>

<table class="table">
	<tr>
		<td>Select Project :</td>
		<td>
			<select name="project" onchange="get_tasks(this.value)" id="projects" class="chzn-select">
				<option value="">-- Select A Project --</option>
				<?php foreach($projects as $project){?>
				<option value="<?php echo $project->id;?>"><?php echo $project->name;?></option>
				<?php }?>
			</select>
		</td>				
		<td><input type="button" value="View Comments" class="btn btn-info" onclick="get_ajax()" /></td>
	</tr>
</table>

<div class="row-fluid" id="update">
<img src="<?php echo base_url()?>assets/images/7.gif" class="offset5" style="display:none;" />

</div>

<script type="text/javascript">

function get_ajax(){	
	var task_id = $('#projects').val();
	$('.offset5').show();
	$.post('<?= site_url("founder/comments/get_comments");?>',{Task_id:task_id}, function(data) {			
			$('#update').html(data);			
	})
}

</script>
